package com.jflm.util;

import java.net.URLDecoder;

public class RSATester {

	
	public static void main(String[] args) throws Exception {
		String orderCode = "JmhF0t/zQzsCudNg6hDGmeC3+1GnYkWWLlpkRWdY7yY/DFw6VCvwWJ7agutD4F1zszQt6nEfc8m2n4zbUKoT9C51MvMCSn6olwP1beNMboSDbArnn9bPFDNuavQtHubn2L/ZmvtNYKkM6oSMjFp0anTGBIlcz2SEJ/Giy6e2sas=";
		String oldOrderCode = "fGk97l4sMXwUXvOsrskJqT4NvdrVRMl+HQsCDEkqQ6ny85BRLicNU2tI7tkSVYbc7R93snRD6+8V2tJvqMLosnZz2TGgtiXfKusYQG1w15AW8QlwkBESi0hwhOsY5oPKDfMVIR8c84TIu7IQLT5Mwpz5CYT1eIrhZ6EManrPxBo=";
		String accessToken = "QFUJepiW/t15a2kMHw/DHtedH2sv5Ow%2BvDBFO%2BorNF4ls0wV4cb87IXdJfGwICIfVXTDTOrrVOtgWfhV07dcFT%2BlYP3Usx%2BTPOy6o0FLUHp6Bq3RhSrP%2BvJGaG%2By0MQ0gSgp8pWqSJZyrWvDpPsywX6lBxSmLzzM%2BqGWYWJSUW8=";
		String mobileNo = "R7fwFwAA0QIhXHuCMN/SxUa728EOn5lILQ3f8oKYYH0uqoH8EEAX+uMzm4fMOrzXy+NNv5Dt3lQwPdrJXxTdIwSslIOJYa5isOVpOIEI/FZedbG5NRXo1cfeeal9blV2I/QZGP8gZDU5fS2EASLkUQP55Jwv3qmbIZvRMtXM4YU=";
		String userid = "ReQyYhqAOLj4tt4KHZjscmDquABVDNoiaoZL2p2aFWMP0r2ZhzYdmYYUriGBxA0jVYFzhbkq8EzQXpdUyepOzNdqWK43XtCs5toCOVk3HGsLTqTZAy6UqqIZ/aEuS82qoqVoRqK0SjFg8QySI4CZN9ULdjnibIbPh5toPhIpKG4=";
//		String privKey = "MIICeAIBADANBgkqhkiG9w0BAQEFAASCAmIwggJeAgEAAoGBAMLbNlkVQDh4apyJwEl9d3Fdi85w+XMgEd7ihvz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anpHSR5q7rOxg/4ViDWZi7jgB9dgzotbPu+2eR8ZyKdpnrUfzplKPfNETbvxVuYUXnH2oZ4rmlu0bBBKQJBAPeDRUJa0CoS7EQyQll8uktz2dx8CuPFcX0S0gREO72+eO2YexwStX827JSGZ90LloLqJ5npR357ieOVh2zsXYUCQQCXdNrMS8/2CD/Kpoh5djBwI4gku/FBaKODoN51XedpT1kEi/8zc60I78Pxbl1UroWU6uul7gqZ5oFSNSxEe/XjAkEAlwmL4gn4rTQO6S6iPmlWZWS0tU8cdhGuR1yMu/3HVuo8cQBzX5YrGw4xIBFEoCbKGek5cTphXlWUt0Qv98/k4QJADfQwLF5XvJ0p82vAayBeehZr9qZyJcqUNg5eMIYESgmLdAXJ712a9ZXRga7fXmvt1riGGXWC+IbqJz7K40xgbQJAO6UKqhKvi9fqv89PeowrcfzEZpS603+2aK/GzvbAl5vlxEb26LLTVdDEFMe/kOcJ2UDcEEzfqgDC2uDp+yqTKw==";
		//System.out.println(URLDecoder.decode(orderCode, "utf-8"));
		//System.out.println(URLDecoder.decode(accessToken, "utf-8"));
		//System.out.println(URLDecoder.decode(mobileNo, "utf08"));
		//String result = RSAUtils.decodeByPrivateKey(accessToken, privKey);
		//System.out.println(result);
		System.out.println(RSAUtils.decodeByPrivateKey(oldOrderCode, privKey));
		System.out.println(RSAUtils.decodeByPrivateKey(orderCode, privKey));
		//System.out.println(RSAUtils.decodeByPrivateKey(userid, privKey));
	}

}
